package com.tt.mymu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tt.mymu.entity.UserView;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.Date;

@Mapper
public interface UserViewMapper extends BaseMapper<UserView> {
    @Update("update t_user_view set end_time = #{date} where user_id = #{id}")
    int updateUserViewEndTimeById(@Param("id") int id,@Param("date") String date);
}
